package com.jdrx.sw.sewage.dao;

import com.jdrx.platform.commons.rest.beans.dto.IdDTO;
import com.jdrx.sw.sewage.beans.entity.AiReportPO;
import com.jdrx.sw.sewage.beans.vo.AiReportStatisticsVO;
import com.jdrx.sw.sewage.beans.vo.AiWindReportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AiReportDAO {

    Integer countNum(@Param("dataType") Integer dataType,
                     @Param("parentName") String parentName);

    List<AiReportStatisticsVO> findAll(@Param("dataType") Integer dataType,
                                       @Param("parentName") String parentName);

    void batchInsert(List<AiReportPO> list);

    void insert(AiReportPO aiReportPO);

    List<AiWindReportVO> findCarbonSourceAiWind(@Param("type") Integer type,
                                                @Param("parentName") String parentName);

    Double findLastWeek(@Param("parentName") String parentName);

    List<AiReportPO> selectWeekReportByPage(@Param("type") Integer type,
                                            @Param("parentName") String parentName);

    AiReportPO selectWeekReportById(IdDTO dto);
}